//
//  UINavigationController+Autorotate.m
//  Courses
//
//  Created by YiXuePxh on 15/5/4.
//  Copyright (c) 2015年 boyibang. All rights reserved.
//

#import "UINavigationController+Autorotate.h"

//@implementation UINavigationController_Autorotate

@implementation UINavigationController(Autorotate)

-(BOOL)shouldAutorotate{
    return self.topViewController.shouldAutorotate;
}
//返回最上层的子Controller的supportedInterfaceOrientations
-(NSUInteger)supportedInterfaceOrientations{
    return self.topViewController.supportedInterfaceOrientations;
}

@end
